/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfas;

import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import javax.imageio.ImageIO;

/**
 *
 * @author OROZCO7
 */
public class Imageners extends Canvas {

    @Override
    public void paint(Graphics g) {

        try {

            Image img = null;
            File f = new File("imagenes/bon.jpg");
            img = ImageIO.read(f);
            g.drawImage(img, 0, 0, this);

        } catch (Exception e) {
        }

    }
}
class Imagenes extends Canvas {

    @Override
    public void paint(Graphics g) {

        try {

            Image img = null;
            File f = new File("imagenes/bon.jpg");
            img = ImageIO.read(f);
            g.drawImage(img, 0, 0, this);

        } catch (Exception e) {
        }

    }
}
